package crazy;

public class DataWrap implements Comparable<DataWrap>
{
	
	public int data;
	public String flag;
	
	public DataWrap(int data, String flag)
	{
		this.data = data;
		this.flag = flag;
	}
	
	@Override
	public String toString()
	{
		return data+flag;
	}
		
	
	@Override
	public int compareTo(DataWrap dw)
	{
		return this.data>dw.data?1:(this.data==dw.data?0:-1);
	}
}
